<?
if(!empty($page_links))
    echo "<p>$page_links</p>";


echo "<table>
      <tr><th><a href=\"/admin/catalogue/product_add?id=$id\" class=\"action\">+</a></th>
          <th>Товар</th>
          <th>Тип</th>
          <th>Пол</th>
          <th>Размер</th>
          <th>Цена</th>
          <th style=\"width:40px;\">Количество</th>
          <th style=\"width:50px;\">Действия</th>
      </tr>";
foreach ($products as $product){
    $id = $product->id;
    $product_href = $href.$product->href;

    echo "<tr><td></td>
              <td>
                <b>{$product->name}</b><br/>
                <a href=\"$product_href\" target=\"_blank\">$product_href</a>
              </td>
              <td>{$product->type}</td>
              <td>{$product->sex}</td>
              <td>{$product->size}</td>
              <td>{$product->price}</td>
              <td>{$product->quantity}</td>
              <td><a href=\"/admin/catalogue/product_edit?id=$id\" title=\"Редактировать\">edit</a>
                  <a href=\"/admin/catalogue/product_del?id=$id\" title=\"Удалить\">delete</a>
              </td>
          </tr>";
}
?>